program DoubleTangent;

{$APPTYPE CONSOLE}
var
x1, y1, x2, y2 : real;
R1, R2 : real;
dx, dy : real;
R, D : real;
a1, a2, b1,b2, c11, c22, c12, c21 : real;
begin
  readln(x1, y1);
  readln(x2, y2);
  readln(R1);
  readln(R2);
  if (R1 > R2) then R := R1-R2;
  if (R1 < R2) then R := R2-R1;
  dx := x1-x2;
  dy := y1-y2;
  D := dx*dx + dy*dy - R*R;
  if (D < 0) then
  begin
    writeln('The Point is in the circle');
    exit;
  end;
  a1 := (-R*dx - dy*sqrt(D)) / (dx*dx+dy*dy);
  b1 := (-R*dy + dx*sqrt(D)) / (dx*dx+dy*dy);
  if (R1 > R2) then
  begin
    c11 := -a1*x1 - b1*y1 + R2;
    c12 := -a1*x1 - b1*y1 - R2;
  end;
  if (R1 < R2) then
  begin
    c11 := -a1*x2 - b1*y2 + R1;
    c12 := -a1*x2 - b1*y2 - R1;
  end;
  writeln(a1:0:2,' ',b1:0:2,' ', c11:0:2);
  writeln(a1:0:2,' ',b1:0:2,' ', c12:0:2);
  if (D=0) then exit;
  b2 := (-R*dy - dx*sqrt(D)) / (dx*dx+dy*dy);
  a2 := (-R*dx + dy*sqrt(D)) / (dx*dx+dy*dy);
  if (R1 > R2) then
  begin
    c21 := -a2*x1 - b2*y1 + R2;
    c22 := -a2*x1 - b2*y1 - R2;
  end;
  if (R1 < R2) then
  begin
    c21 := -a2*x2 - b2*y2 + R1;
    c22 := -a2*x2 - b2*y2 - R1;
  end;
  writeln(a2:0:2,' ',b2:0:2,' ', c21:0:2);
  writeln(a2:0:2,' ',b2:0:2,' ', c22:0:2);

end.
 